"""
======================
Author: 柠檬班-小简
Time: 2022/11/11 20:12
Project: day12_framwork_V9
Company: 湖南零檬信息技术有限公司
======================
"""
"""
http://mall.lemonban.com:8107/login

{"principal":"14535898053","credentials":"1234567890","appType":3,"loginType":"0"}

{"access_token":"e5be0226-5695-496a-babd-1df09790fec2","token_type":"bearer","refresh_token":"6b644ace-a945-4451-97d1-1920ce1d0eec","expires_in":1295999,"pic":null,"userId":"9911d9a1967a479fa9667e5958e06720","nickName":"14535898053","enabled":true}
"""

"""
全新注册的帐号，下单前：
添加收货地址：
	http://mall.lemonban.com:8107/p/address/addAddr
	
	{"addrId":0,
	"addr":"麓谷企业广场F3栋",
	"area":"岳麓区",
	"areaId":430104,
	"city":"长沙市",
	"cityId":4301,
	"mobile":"18684720553",
	"postCode":"",
	"province":"湖南省",
	"provinceId":43,
	"receiver":"小简"}

响应： 添加地址成功

创建订单：
http://mall.lemonban.com:8107/p/order/confirm

{
	"addrId": 0,
	"orderItem": {
		"prodId": 816,  # 产品id  哪里来？？
		"skuId": 1153,  # 库存id  哪里来？？
		"prodCount": 1,  # 购买数量
		"shopId": 1   # 店铺id
	},
	"couponIds": [],  # 团购id??
	"isScorePay": 0,  # 是否积分支付
	"userChangeCoupon": 0,  # 用户是否使用优惠 
	"userUseScore": 0, # 用户使用积分？
	"uuid": "b6ee24c4-75d7-47ee-b4c6-3177f67f839c"
}


提交订单：
	http://mall.lemonban.com:8107/p/order/submit
	
	{"orderShopParam":[{"remarks":"","shopId":1}],
	"uuid":"e2726908-6168-4858-8db1-b22838148b41"}
	
	{"orderNumbers":"1591043307138715648","duplicateError":null}
	

发起支付：
	http://mall.lemonban.com:8107/p/order/pay
	
	{"payType":3,"orderNumbers":"1591047421566390272"}
	
	weixin://wxpay/bizpayurl?pr=AGeIwiqzz

调用通知地址：
    回调地址：http://mall.lemonban.com:8107/notice/pay/3
    请求参数：
    {
        "payNo":self.order_number, #商城支付订单号
        "bizPayNo":str(int(time.time()*1000)), #微信方的订单号
        "isPaySuccess":True,#True 成功，False 失败
    }
	
支付成功：
    商品的库存会少 1  
    订单的支付状态 is_payed变更为1，表示已支付. status变更为2，表示待发货。

"""